import Vue from 'vue'
import Router from 'vue-router'
import myMusic from '@/components/myMusic/myMusic.vue'
import foundMusic from '@/components/foundMusic/foundMusic.vue'
import community from '@/components/community/community.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      redirect:'/myMusic'
    },
    {
      path: '/myMusic',
      name: 'myMusic',
      component: myMusic
    },
    {
      path:'/foundMusic',
      name:'foundMusic',
      component:foundMusic
    },
    {
      path:'/community',
      name:'community',
      component:community
    }
  ]
})
